package com.guandi.geekbrowser.secondary.repository;

import com.guandi.geekbrowser.secondary.entity.ForumUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ForumUserRepository extends JpaRepository<ForumUser,Integer> {

    ForumUser findByUsernameAndPassword(String name, String password);

    ForumUser findByUsername(String name);

    ForumUser findByUid(Integer uid);
}
